import { useState, useCallback } from 'react';
import { useUserApi } from '../services/api';
import { useBaseModel } from '../hooks/baseModel';


export default function User(){

  const userApi = useUserApi()

  const infoModel = useBaseModel(() => userApi.info())
  infoModel.loadData.autoRun([])

  return {
    user: infoModel.data,
  }
}
